<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport"
        content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <title>患者_医嘱记录</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/style.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui.2.0.css" />
    <link rel="stylesheet" type="text/css" href="../css/BasicPatientInformation.css" />
    <style>
        .aui-list-item-label {
            font-size: 0.6rem;
            text-align: right;
        }

        .aui-list-item-input {
            font-size: 0.6rem;
            color: #666;
        }
    </style>
</head>

<body>
    <main id="app">
        <div class="aui-padded-5" id="tab1-con">
            <section class="aui-content-padded">
                <div class="aui-card-list">
                    <ul class="aui-list aui-form-list">
                        <li class="aui-list-item">
                            <div class="aui-list-item-inner">
                                <div class="aui-list-item-label">
                                    治疗方案：
                                </div>
                                <div class="aui-list-item-input" id="moTreatmentPlan">

                                </div>
                            </div>
                        </li>
                        <li class="aui-list-item">
                            <div class="aui-list-item-inner">
                                <div class="aui-list-item-label">
                                    治疗频次：
                                </div>
                                <div class="aui-list-item-input" id="moTreatFrequency">

                                </div>
                            </div>
                        </li>
                        <li class="aui-list-item">
                            <div class="aui-list-item-inner">
                                <div class="aui-list-item-label">
                                    治疗疗程：
                                </div>
                                <div class="aui-list-item-input" id="moTreatmentCourse">

                                </div>
                            </div>
                        </li>
                        <li class="aui-list-item">
                            <div class="aui-list-item-inner">
                                <div class="aui-list-item-label">
                                    疗程次数：
                                </div>
                                <div class="aui-list-item-input" id="moNumberCourses">

                                </div>
                            </div>
                        </li>
                        <li class="aui-list-item">
                            <div class="aui-list-item-inner">
                                <div class="aui-list-item-label">
                                    治疗压力：
                                </div>
                                <div class="aui-list-item-input" id="moPressure">

                                </div>
                            </div>
                        </li>
                        <li class="aui-list-item">
                            <div class="aui-list-item-inner">
                                <div class="aui-list-item-label">
                                    陪护人员：
                                </div>
                                <div class="aui-list-item-input" id="moPatientCare">

                                </div>
                            </div>
                        </li>
                        <li class="aui-list-item">
                            <div class="aui-list-item-inner">
                                <div class="aui-list-item-label">
                                    医护陪舱：
                                </div>
                                <div class="aui-list-item-input" id="moMedicalCabin">

                                </div>
                            </div>
                        </li>
                        <li class="aui-list-item">
                            <div class="aui-list-item-inner">
                                <div class="aui-list-item-label">
                                    吸氧方式：
                                </div>
                                <div class="aui-list-item-input" id="moOxygenMode">

                                </div>
                            </div>
                        </li>
                        <li class="aui-list-item">
                            <div class="aui-list-item-inner">
                                <div class="aui-list-item-label">
                                    供氧方式：
                                </div>
                                <div class="aui-list-item-input" id="moSupportType">

                                </div>
                            </div>
                        </li>
                        <li class="aui-list-item">
                            <div class="aui-list-item-inner">
                                <div class="aui-list-item-label">
                                    患者体位：
                                </div>
                                <div class="aui-list-item-input" id="moPosition">

                                </div>
                            </div>
                        </li>
                        <li class="aui-list-item">
                            <div class="aui-list-item-inner">
                                <div class="aui-list-item-label">
                                    静脉输液：
                                </div>
                                <div class="aui-list-item-input" id="moInfusion">

                                </div>
                            </div>
                        </li>
                        <li class="aui-list-item">
                            <div class="aui-list-item-inner">
                                <div class="aui-list-item-label">
                                    管道：
                                </div>
                                <div class="aui-list-item-input" id="moTheConduit">

                                </div>
                            </div>
                        </li>
                        <li class="aui-list-item">
                            <div class="aui-list-item-inner">
                                <div class="aui-list-item-label">
                                    医生签名：
                                </div>
                                <div class="aui-list-item-input" id="moAssessor">

                                </div>
                            </div>
                        </li>
                        <li class="aui-list-item">
                            <div class="aui-list-item-inner">
                                <div class="aui-list-item-label">
                                    书写医嘱时间：
                                </div>
                                <div class="aui-list-item-input" id="moOperTime">

                                </div>
                            </div>
                        </li>
                    </ul>
                </div>
            </section>
        </div>
    </main>
</body>
<script src="../script/api.js" charset="utf-8" type="text/javascript"></script>
<script src="../script/vue.js" charset="utf-8" type="text/javascript"></script>
<script src="../js/jquery.min.js" charset="utf-8" type="text/javascript"></script>
<script src="../js/ToConfigure.js" charset="utf-8" type="text/javascript"></script>
<script src="../script/aui-toast.js" charset="utf-8" type="text/javascript"></script>
<script src="../script/aui-dialog.js" charset="utf-8" type="text/javascript"></script>
<script src="../script/aui-tab.js" charset="utf-8" type="text/javascript"></script>
<script type="text/javascript">
    var vm = null;
    apiready = function () {
        //接收患者ID
        var F_ID = api.pageParam.F_ID;

        vm = new Vue({
            el: '#app',
            data: {
                F_ID: 0, //患者唯一标识
            },
            created() {
                //获取所属医院IP地址
                var Url_IP = ToConfigure_IP("Gorgeous");

                if (F_ID !== undefined && F_ID !== '') {
                    this.F_ID = F_ID;
                }

                //判断预约这ID不为空
                if (this.F_ID !== null && this.F_ID !== '' && this.F_ID !== undefined) {
                    var JsParms = new Object();
                    JsParms.moTrId = this.F_ID;
                    var jsonStr = JSON.stringify(JsParms);
                    $.ajax({
                        url: Url_IP + '/businessmanagement/homedicalorder/getHoMedicalOrder',
                        type: 'post',
                        async: false,
                        contentType: "application/json",
                        dataType: "json",
                        data: jsonStr,
                        success: function (result) {
                            /**
                             * 验证返回信息是否为空
                             */
                            if (result.success == true) {
                                /**
                                 *  循环object
                                 */
                                $.each(result.data.list, function (i, o) {
                                    /**
                                     *压力
                                     */
                                    $("#moPressure").html(o.moPressure);
                                    /**
                                     *吸氧方式
                                     */
                                    $("#moOxygenMode").html(o.moOxygenMode);
                                    /**
                                     *供氧方式
                                     */
                                    $("#moSupportType").html(o.moSupportType);
                                    /**
                                     *治疗频次
                                     */
                                    $("#moTreatFrequency").html(o.moTreatFrequency);
                                    /**
                                     *治疗疗程
                                     */
                                    $("#moTreatmentCourse").html(o.moTreatmentCourse);
                                    /**
                                     *疗程次数
                                     */
                                    $("#moNumberCourses").html(o.moNumberCourses);
                                    /**
                                     *当前第几疗程
                                     */
                                    $("#moNowTreatments").html(o.moNowTreatments);
                                    /**
                                     *当前疗程的第几次
                                     */
                                    $("#moNowNumbers").html(o.moNowNumbers);
                                    /**
                                     *患者陪护人数
                                     */
                                    $("#moPatientCare").html(o.moPatientCare);
                                    /**
                                     *体位
                                     */
                                    $("#moPosition").html(o.moPosition);
                                    /**
                                     *医护陪舱人数
                                     */
                                    $("#moMedicalCabin").html(o.moMedicalCabin);
                                    /**
                                     *吸痰
                                     */
                                    $("#moSputum").html(o.moSputum);
                                    /**
                                     *静脉输液
                                     */
                                    $("#moInfusion").html(o.moInfusion);
                                    /**
                                     *评估人
                                     */
                                    $("#moAssessor").html(o.moAssessor);
                                    /**
                                     * 治疗方案
                                     */
                                    $("#moTreatmentPlan").html(o.moTreatmentPlan);
                                    /**
                                     * 心电监护
                                     */
                                    $("#moEcgMonitoring").html(o.moEcgMonitoring);
                                    /**
                                     *管道
                                     */
                                    $("#moTheConduit").html(o.moTheConduit);
                                    /**
                                     *书写医嘱时间
                                     */
                                     $("#moOperTime").html(o.moOperTime);
                                })
                            } else {
                                /**
                                 *  弹窗提示 暂无相关信息
                                 */
                                toast.fail({
                                    title: "加载失败",
                                    duration: 2000
                                });
                            }
                        },
                        error: function (result) {
                            /**
                             *  提示错误信息
                             */
                            toast.fail({
                                title: "加载失败",
                                duration: 2000
                            });
                        }
                    });
                }
            }
        });
    }
</script>

</html>